﻿package Message.Game
{
    import Engine.RMI.*;
    import Framework.Serialize.*;
    import Framework.Util.*;
    import Message.Public.*;

    public class AMI_IPlayer_getAttribute extends RMIObject
    {

        public function AMI_IPlayer_getAttribute(param1:Function = null, param2:Function = null, param3:Object = null)
        {
            super(param1, param2);
            userObject = param3;
            callFunction = "getAttribute";
            return;
        }// end function

        override public function __response(param1:SerializeStream) : void
        {
            var combat:int;
            var baseFight:SFightAttribute;
            var extraFight:SFightAttribute;
            var addPercent:SFightAttributeAddPercent;
            var cellFight:SFightAttribute;
            var __is:* = param1;
            try
            {
                combat = __is.readInt();
                baseFight = new SFightAttribute();
                baseFight.__read(__is);
                extraFight = new SFightAttribute();
                extraFight.__read(__is);
                addPercent = new SFightAttributeAddPercent();
                addPercent.__read(__is);
                cellFight = new SFightAttribute();
                cellFight.__read(__is);
            }
            catch (__ex:Error)
            {
                cdeException(new Exception("ExceptionCodeSerialize", Exception.ExceptionCodeSerialize));
                return;
            }
            this.cdeResponse(combat, baseFight, extraFight, addPercent, cellFight);
            return;
        }// end function

        public function cdeResponse(param1:int, param2:SFightAttribute, param3:SFightAttribute, param4:SFightAttributeAddPercent, param5:SFightAttribute) : void
        {
            if (_response != null)
            {
                _response.call(null, this, param1, param2, param3, param4, param5);
            }
            return;
        }// end function

    }
}
